package com.redteam.xomtro.entities;

import com.redteam.xomtro.R;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by AnhThuanIT on 5/21/2014.
 */
public class Room implements Serializable {
    private String id;
    private String Room_Name;
    private double Room_Price;
    private int Room_Quantity_Guest;
    private int Room_Type_Id;
    private String Room_Address;
    private int Area_Id;
    private double Room_Longitude;
    private String bannerUrl;
    private double Room_Latitude;
    private String Room_Description;
    //private Date Room_Created_Date;
    private boolean Room_Status;
    private int Viewed_Count;
    private String Room_Image;
    private String Room_Amentity;
    private double Room_Area;
    private int priRoom_Pano_Id;
    private boolean AllowBooking;
    private boolean AllowBooking_Price;
    private int Account_Id;
    private double Room_Electricity_Price;
    private double Room_Water_Price;

    private ArrayList<String> subImage;

    private ArrayList<Integer> demo_subImage;
    private int demo_titleImage;

    public Room(String id) {
        this.id = id;
    }

    public Room() {
    }

    public Room(String roomName, String roomImage, double roomPrice, String image) {
        this.Room_Name = roomName;
        this.Room_Image = roomImage;
        this.Room_Price = roomPrice;
        this.bannerUrl = image;
    }

    public static ArrayList<Room> getListRoomExample() {
        String name = "Nhà Trọ Sinh Viên";
        String vu_avatar = "https://lh3.googleusercontent.com/-P1jsQuDVO_4/AAAAAAAAAAI/AAAAAAAAAAA/0QUMOrSITm8/s96-c/photo.jpg";
        String banner = "http://farm4.staticflickr.com/3059/2789610361_8ff070cb32.jpg";
        ArrayList<Integer> subImage1 = new ArrayList<Integer>();
        subImage1.add(R.drawable.demo_subimage1);
        subImage1.add(R.drawable.demo_subimage2);
        subImage1.add(R.drawable.demo_subimage3);
        subImage1.add(R.drawable.demo_subimage4);
        subImage1.add(R.drawable.demo_subimage5);
        subImage1.add(R.drawable.demo_subimage6);
        subImage1.add(R.drawable.demo_subimage7);

        ArrayList<Integer> subImage2 = new ArrayList<Integer>();
        subImage2.add(R.drawable.demo_subimage1);
        subImage2.add(R.drawable.demo_subimage2);

        ArrayList<Integer> subImage3 = new ArrayList<Integer>();
        subImage3.add(R.drawable.demo_subimage1);
        subImage3.add(R.drawable.demo_subimage2);
        subImage3.add(R.drawable.demo_subimage3);

        ArrayList<Integer> subImage4 = new ArrayList<Integer>();
        subImage4.add(R.drawable.demo_subimage1);
        subImage4.add(R.drawable.demo_subimage2);
        subImage4.add(R.drawable.demo_subimage3);
        subImage4.add(R.drawable.demo_subimage4);
        subImage4.add(R.drawable.demo_subimage5);
        subImage4.add(R.drawable.demo_subimage6);
        subImage4.add(R.drawable.demo_subimage7);


        ArrayList<Room> list = new ArrayList<Room>();
        Room r = new Room("Căn nhà mơ ước", vu_avatar, 124, banner);
        r.setId("1");
        r.setRoom_Name("Nhà trọ vui vẻ 1");
        r.setArea_Id(1);
        r.setRoom_Address("19 Nguyễn Thị Minh Khai, Q1, TP.HCM");
        r.setRoom_Latitude(10.7901639);
        r.setRoom_Longitude(106.7056472);
        r.setDemo_titleImage(R.drawable.demo_mytam);
        r.setDemo_subImage(subImage4);
        list.add(r);

        Room r1 = new Room("Căn nhà mơ ước", vu_avatar, 124, banner);
        r1.setId("2");
        r1.setRoom_Name("Nhà trọ vui vẻ 2");
        r1.setArea_Id(1);
        r1.setRoom_Address("19 Nguyễn Thị Minh Khai, Q1, TP.HCM");
        r1.setRoom_Latitude(10.7901639);
        r1.setRoom_Longitude(106.7056472);
        r1.setDemo_titleImage(R.drawable.demo_mytam);
        r1.setDemo_subImage(subImage2);
        list.add(r1);


        Room r3 = new Room("Căn nhà mơ ước", vu_avatar, 124, banner);
        r3.setId("3");
        r3.setRoom_Name("Nhà trọ vui vẻ 3");
        r3.setRoom_Address("Event 1 content");
        r3.setArea_Id(1);
        r3.setRoom_Address("19 Nguyễn Thị Minh Khai, Q1, TP.HCM");
        r3.setRoom_Latitude(10.7901639);
        r3.setRoom_Longitude(106.7056472);
        r3.setDemo_titleImage(R.drawable.demo_mytam);;
        r3.setDemo_subImage(subImage3);
        list.add(r3);


        Room r4 = new Room("Căn nhà mơ ước", vu_avatar, 124, banner);
        r4.setId("4");
        r4.setRoom_Name("Nhà trọ vui vẻ 4");
        r4.setRoom_Address("Event 1 content");
        r4.setArea_Id(1);
        r4.setRoom_Address("19 Nguyễn Thị Minh Khai, Q1, TP.HCM");
        r4.setRoom_Latitude(10.7901639);
        r4.setRoom_Longitude(106.7056472);
        r4.setDemo_titleImage(R.drawable.demo_mytam);
        r4.setDemo_subImage(subImage4);
        list.add(r4);

        return list;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoom_Name() {
        return Room_Name;
    }

    public void setRoom_Name(String room_Name) {
        Room_Name = room_Name;
    }

    public double getRoom_Price() {
        return Room_Price;
    }

    public void setRoom_Price(double room_Price) {
        Room_Price = room_Price;
    }

    public int getRoom_Quantity_Guest() {
        return Room_Quantity_Guest;
    }

    public void setRoom_Quantity_Guest(int room_Quantity_Guest) {
        Room_Quantity_Guest = room_Quantity_Guest;
    }

    public int getRoom_Type_Id() {
        return Room_Type_Id;
    }

    public void setRoom_Type_Id(int room_Type_Id) {
        Room_Type_Id = room_Type_Id;
    }

    public String getRoom_Address() {
        return Room_Address;
    }

    public void setRoom_Address(String room_Address) {
        Room_Address = room_Address;
    }

    public int getArea_Id() {
        return Area_Id;
    }

    public void setArea_Id(int area_Id) {
        Area_Id = area_Id;
    }

    public double getRoom_Longitude() {
        return Room_Longitude;
    }

    public void setRoom_Longitude(double room_Longitude) {
        Room_Longitude = room_Longitude;
    }

    public double getRoom_Latitude() {
        return Room_Latitude;
    }

    public void setRoom_Latitude(double room_Latitude) {
        Room_Latitude = room_Latitude;
    }

    public String getRoom_Description() {
        return Room_Description;
    }

    public void setRoom_Description(String room_Description) {
        Room_Description = room_Description;
    }

//        public Date getRoom_Created_Date() {
//            return Room_Created_Date;
//        }
//
//        public void setRoom_Created_Date(Date room_Created_Date) {
//            Room_Created_Date = room_Created_Date;
//        }

    public boolean isRoom_Status() {
        return Room_Status;
    }

    public void setRoom_Status(boolean room_Status) {
        Room_Status = room_Status;
    }

    public int getViewed_Count() {
        return Viewed_Count;
    }

    public void setViewed_Count(int viewed_Count) {
        Viewed_Count = viewed_Count;
    }

    public String getRoom_Image() {
        return Room_Image;
    }

    public void setRoom_Image(String room_Image) {
        Room_Image = room_Image;
    }

    public String getRoom_Amentity() {
        return Room_Amentity;
    }

    public void setRoom_Amentity(String room_Amentity) {
        Room_Amentity = room_Amentity;
    }

    public double getRoom_Area() {
        return Room_Area;
    }

    public void setRoom_Area(double room_Area) {
        Room_Area = room_Area;
    }

    public int getPriRoom_Pano_Id() {
        return priRoom_Pano_Id;
    }

    public void setPriRoom_Pano_Id(int priRoom_Pano_Id) {
        this.priRoom_Pano_Id = priRoom_Pano_Id;
    }

    public boolean isAllowBooking() {
        return AllowBooking;
    }

    public void setAllowBooking(boolean allowBooking) {
        AllowBooking = allowBooking;
    }

    public boolean isAllowBooking_Price() {
        return AllowBooking_Price;
    }

    public void setAllowBooking_Price(boolean allowBooking_Price) {
        AllowBooking_Price = allowBooking_Price;
    }

    public int getAccount_Id() {
        return Account_Id;
    }

    public void setAccount_Id(int account_Id) {
        Account_Id = account_Id;
    }

    public double getRoom_Electricity_Price() {
        return Room_Electricity_Price;
    }

    public void setRoom_Electricity_Price(double room_Electricity_Price) {
        Room_Electricity_Price = room_Electricity_Price;
    }

    public double getRoom_Water_Price() {
        return Room_Water_Price;
    }

    public void setRoom_Water_Price(double room_Water_Price) {
        Room_Water_Price = room_Water_Price;
    }

    public ArrayList<String> getSubImage() {
        return subImage;
    }

    public void setSubImage(ArrayList<String> subImage) {
        this.subImage = subImage;
    }

    public ArrayList<Integer> getDemo_subImage() {
        return demo_subImage;
    }

    public void setDemo_subImage(ArrayList<Integer> demo_subImage) {
        this.demo_subImage = demo_subImage;
    }

    public int getDemo_titleImage() {
        return demo_titleImage;
    }

    public void setDemo_titleImage(int demo_titleImage) {
        this.demo_titleImage = demo_titleImage;
    }

    public String getBannerUrl() {
        return bannerUrl;
    }

    public void setBannerUrl(String bannerUrl) {
        this.bannerUrl = bannerUrl;
    }
}


